package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BeneficiariesMapper;
import com.ruoyi.system.domain.Beneficiaries;
import com.ruoyi.system.service.IBeneficiariesService;

/**
 * 权益人管理Service业务层处理
 *
 * @author ruoyi
 * @date 2024-09-11
 */
@Service
public class BeneficiariesServiceImpl implements IBeneficiariesService
{
    @Autowired
    private BeneficiariesMapper beneficiariesMapper;

    /**
     * 查询权益人管理
     *
     * @param id 权益人管理主键
     * @return 权益人管理
     */
    @Override
    public Beneficiaries selectBeneficiariesById(Long id)
    {
        return beneficiariesMapper.selectBeneficiariesById(id);
    }

    /**
     * 查询权益人管理列表
     *
     * @param beneficiaries 权益人管理
     * @return 权益人管理
     */
    @Override
    public List<Beneficiaries> selectBeneficiariesList(Beneficiaries beneficiaries)
    {
        return beneficiariesMapper.selectBeneficiariesList(beneficiaries);
    }

    /**
     * 新增权益人管理
     *
     * @param beneficiaries 权益人管理
     * @return 结果
     */
    @Override
    public int insertBeneficiaries(Beneficiaries beneficiaries)
    {
        return beneficiariesMapper.insertBeneficiaries(beneficiaries);
    }

    /**
     * 修改权益人管理
     *
     * @param beneficiaries 权益人管理
     * @return 结果
     */
    @Override
    public int updateBeneficiaries(Beneficiaries beneficiaries)
    {
        return beneficiariesMapper.updateBeneficiaries(beneficiaries);
    }

    /**
     * 批量删除权益人管理
     *
     * @param ids 需要删除的权益人管理主键
     * @return 结果
     */
    @Override
    public int deleteBeneficiariesByIds(Long[] ids)
    {
        return beneficiariesMapper.deleteBeneficiariesByIds(ids);
    }

    /**
     * 删除权益人管理信息
     *
     * @param id 权益人管理主键
     * @return 结果
     */
    @Override
    public int deleteBeneficiariesById(Long id)
    {
        return beneficiariesMapper.deleteBeneficiariesById(id);
    }
}
